<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "set_user_up".
 *
 * @property int $id
 * @property float $member 购买金额
 * @property float $r1
 * @property float $r2
 * @property int $vip1
 * @property int $vip2
 * @property int $vip3
 * @property int $vip4
 * @property int $vip5
 */
class SetUserUp extends \yii\db\ActiveRecord
{
    use SetUserUpCommon;

    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'set_user_up';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['member'], 'number'],
            [['vip1'], 'required'],
            [['r1', 'r2'], 'required'],
            [['vip1', 'vip2', 'vip3', 'vip4', 'vip5'], 'integer'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'member' => 'Member',
            'vip1' => 'Vip 1',
            'vip2' => 'Vip 2',
            'vip3' => 'Vip 3',
            'vip4' => 'Vip 4',
            'vip5' => 'Vip 5',
        ];
    }
}
